import { defineStore } from 'pinia';
import { cookieStorage } from '~~/utils/getCookie';

export const useAuthStore = defineStore('auth', {
	state: () => ({
		me: {} as any,
	}),
	persist: process.client && {
		storage: cookieStorage,
	},
});
